/**
 * Description: RegisterLargeItemTypeServiceImpl.java
 * Copyright (c) 2008-2009  Neo. 
 * All Rights Reserved.
 * @version 1.0  Apr 9, 2009 10:28:58 PM 李萌（neolimeng@gmail.com）created
 */
package org.paradise.dms.services.impl;

import java.util.List;

import org.apache.log4j.Logger;
import org.paradise.dms.dao.impl.RegisterLargeItemTypeDAOImpl;
import org.paradise.dms.pojo.RegisterLargeItemType;
import org.paradise.dms.services.RegisterLargeItemTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

/**
 * Description: Copyright (c) 2008-2009 Neo. All Rights Reserved.
 * 
 * @version 1.0 Apr 9, 2009 10:28:58 PM 李萌（neolimeng@gmail.com）created
 */
@Service
public class RegisterLargeItemTypeServiceImpl implements
		RegisterLargeItemTypeService {
	private static Logger log = Logger
			.getLogger(RegisterLargeItemTypeServiceImpl.class);

	@Autowired
	@Qualifier("registerLargeItemTypeDAOImpl")
	private RegisterLargeItemTypeDAOImpl registerLargeItemTypeDAOImpl;
	List<RegisterLargeItemType> lrlit;

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.paradise.dms.services.RegisterLargeItemTypeService#getAllLargeItemType()
	 */
	public List<RegisterLargeItemType> getAllLargeItemType() {
		try {
			lrlit = this.registerLargeItemTypeDAOImpl
					.getAllRegisterLargeItemType();
			log.info("DMS_info_取得所有大物品类型，成功！！共有：" + lrlit.size() + "条。");
			return lrlit;
		} catch (Exception e) {
			log.error("DMS_error_取得所有大物品类型，失败！!");
			e.printStackTrace();
			return null;
		}
	}

	public RegisterLargeItemTypeDAOImpl getRegisterLargeItemTypeDAOImpl() {
		return registerLargeItemTypeDAOImpl;
	}

	public void setRegisterLargeItemTypeDAOImpl(
			RegisterLargeItemTypeDAOImpl registerLargeItemTypeDAOImpl) {
		this.registerLargeItemTypeDAOImpl = registerLargeItemTypeDAOImpl;
	}

	public List<RegisterLargeItemType> getLrlit() {
		return lrlit;
	}

	public void setLrlit(List<RegisterLargeItemType> lrlit) {
		this.lrlit = lrlit;
	}

}
